import request from "../utils/request";


// 登录
export const apiLogin = (data) => {
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
}

// 获取用户信息
export const apigetUserInfo = () => {
    return request({
        url: '/api/getuserinfo'
    })
}

// 获取身份列表
export const apigetIdentityList = () => {
    return request({
        url: '/api/getIdentityList'
    })
}

// 添加身份
export const apiAddIdentityList = (data) => {
    return request({
        url: '/api/addIdentityList',
        method: 'post',
        data
    })
}

// 添加用户
export const apiAddUserList = (data) => {
    return request({
        url: '/api/addUserList',
        method: 'post',
        data
    })
}

// 给身份添加视图权限
export const apieditIdentityAuth = (data) => {
    return request({
        url: '/api/editIdentityAuth',
        method: 'post',
        data
    })
}

// 考试类型
export const apigetExamType = () => {
    return request({
        url: '/api/getExamType'
    })
}

// 课程类型
export const apiClassType = () => {
    return request({
        url: '/api/classType'
    })
}

// 添加试题
export const apiAddExamList = (data) => {
    return request({
        url: '/api/addExamList',
        method:'post',
        data
    })
}

// 后去所有试题
export const apigetExamList = (data) => {
    return request({
        url: '/api/getExamList',
        method:'post',
        data
    })
}
